package com.xunji.user.vo.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("添加组织机构vo")
@Data
public class OrgAddRequest {

    @ApiModelProperty("上级组织机构id")
    @NotNull(message = "上级组织机构id不能为空")
    private Integer parentId;

    @ApiModelProperty("组织名称")
    @NotBlank(message = "组织名称不能为空")
    private String name;

    @ApiModelProperty("顺序")
    @NotNull(message = "顺序不能为空")
    private Integer weight = 0;
}
